package com.shixun.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shixun.domain.Helper;
import com.shixun.domain.Student;
import com.shixun.dto.HelperDto;
import com.shixun.service.HelperService;
import com.shixun.mapper.HelperMapper;
import com.shixun.service.StudentService;
import com.shixun.utils.R;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
* @author ASUS
* @description 针对表【helper】的数据库操作Service实现
* @createDate 2023-06-14 10:29:39
*/
@Service
public class HelperServiceImpl extends ServiceImpl<HelperMapper, Helper>
    implements HelperService{

    @Autowired
    HelperMapper helperMapper;
    @Override
    public R helperPage(int pageSize, int pageNum, String sname, String sno) {
        IPage<HelperDto> helperDtoIPage=new Page<>(pageNum,pageSize);
        IPage<HelperDto> helperDtoIPage1 = helperMapper.helperPage(helperDtoIPage, sname, sno);
        return new R(200,"",helperDtoIPage1);
    }
}




